package com.xydtech.ecard.ecard.service.impl;

import com.xydtech.ecard.ecard.domain.EcardApiPersonManageWork;
import com.xydtech.ecard.ecard.mapper.EcardApiPersonManageWorkInfoMapper;
import com.xydtech.ecard.ecard.service.IEcardApiPersonManageWorkInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 电子名片个人经营/工作情况信息Service业务层处理
 *
 * @author yuzhiguo
 * @date 2024-08-26 下午3:37
 */
@Service
public class EcardApiPersonManageWorkInfoServiceImpl implements IEcardApiPersonManageWorkInfoService {

    @Autowired
    private EcardApiPersonManageWorkInfoMapper ecardPersonManageWorkInfoMapper;

    /**
     * 保存电子名片个人经营/工作情况信息
     * @param ecardPersonManageWork
     * @return
     */
    @Override
    public int addPersonManageWorkInfo(EcardApiPersonManageWork ecardPersonManageWork) {
        return ecardPersonManageWorkInfoMapper.addPersonManageWorkInfo(ecardPersonManageWork);
    }

    /**
     * 查询电子名片个人经营/工作情况信息列表
     * @param apiPersonManageWorkInfo
     * @return
     */
    @Override
    public List<EcardApiPersonManageWork> selectEcardPersonManageWorkList(EcardApiPersonManageWork apiPersonManageWorkInfo) {
        return ecardPersonManageWorkInfoMapper.selectEcardPersonManageWorkList(apiPersonManageWorkInfo);
    }
}
